/*     */ package com.newcrm.webapi;
/*     */ 
/*     */ import com.newcrm.exception.NotFoundException;
/*     */ import com.newcrm.util.ParameterUtil;
/*     */ import com.newcrm.util.Util;
/*     */ import com.newcrm.webapi.sub.AddDealCustomer;
/*     */ import com.newcrm.webapi.sub.DeleteDealCustomer;
/*     */ import java.io.IOException;
/*     */ import javax.servlet.RequestDispatcher;
/*     */ import javax.servlet.ServletException;
/*     */ import javax.servlet.http.HttpServletRequest;
/*     */ import javax.servlet.http.HttpServletResponse;
/*     */ 
/*     */ public class DealCustomer extends AbstractHttpServlet
/*     */ {
/*     */   private static final long serialVersionUID = -8435071897869005420L;
/*     */ 
/*     */   public void doGet(HttpServletRequest request, HttpServletResponse response)
/*     */     throws ServletException, IOException
/*     */   {
/*  36 */     if (!checkLogin(request)) {
/*  37 */       super.showLoginPage(request, response);
/*  38 */       return;
/*     */     }
/*     */ 
/*  41 */     String url = request.getRequestURI();
/*  42 */     String[] param = ParameterUtil.getParameters(url, getTagkey());
/*     */     try
/*     */     {
/*  45 */       if ((param == null) || (param.length == 0))
/*     */       {
/*  47 */         String operation = Util.getURLParameter(request
/*  48 */           .getParameter("operation"));
/*  49 */         AbstractAction action = null;
/*  50 */         if ("new".equals(operation))
/*     */         {
/*  52 */           action = getAddAction();
/*  53 */         } else if ("delete".equals(operation)) {
/*  54 */           action = new DeleteDealCustomer(this);
/*     */         }
/*  56 */         if (action != null) {
/*  57 */           action.parse(request, response);
/*  58 */           return;
/*     */         }
/*  60 */         return;
/*     */       }
/*     */     }
/*     */     catch (NotFoundException e) {
/*  64 */       request.getRequestDispatcher("/errorpage.jsp").forward(request, 
/*  65 */         response);
/*  66 */       return;
/*     */     }
/*  68 */     super.doGet(request, response);
/*     */   }
/*     */ 
/*     */   protected AbstractAction getAddAction()
/*     */   {
/*  73 */     return new AddDealCustomer(this);
/*     */   }
/*     */ 
/*     */   protected AbstractAction getDeleteAction(String id)
/*     */   {
/*  78 */     return null;
/*     */   }
/*     */ 
/*     */   protected AbstractAction getListAction()
/*     */   {
/*  83 */     return null;
/*     */   }
/*     */ 
/*     */   protected AbstractAction getShowAction(String id)
/*     */   {
/*  88 */     return null;
/*     */   }
/*     */ 
/*     */   protected AbstractAction getShowAddPageAction()
/*     */   {
/*  93 */     return null;
/*     */   }
/*     */ 
/*     */   protected AbstractAction getShowConfirmDestroyAction(String id)
/*     */   {
/*  98 */     return null;
/*     */   }
/*     */ 
/*     */   protected AbstractAction getShowUpdatePageAction(String id)
/*     */   {
/* 103 */     return null;
/*     */   }
/*     */ 
/*     */   protected String getTagkey()
/*     */   {
/* 108 */     return "dealCustomer";
/*     */   }
/*     */ 
/*     */   protected AbstractAction getUpdateAction(String id)
/*     */   {
/* 113 */     return null;
/*     */   }
/*     */ }

/* Location:           C:\E\referenceProject\CRM参考\qikebao\WEB-INF\lib\qikebao.jar
 * Qualified Name:     com.newcrm.webapi.DealCustomer
 * JD-Core Version:    0.6.1
 */